ifneq ($(KERNELRELEASE),)
	obj-m += key_device.o
	key_device-y += keys_device.o
else
	KERNEL_DIR := /home/bruce/Work_Directory/s3c2440/Kernel/self/linux-2.6.22.6
	PWD ?= $(shell pwd)
default:
	make -C $(KERNEL_DIR) M=$(PWD) modules
endif

clean:
	@rm -rf *.o *.ko *.mod.c *.order *.symvers .tmp_versions .*.cmd
	ls -la

